<?php

namespace App\Services;

use OSS\Http\RequestCore;
use OSS\Http\ResponseCore;
use OSS\OssClient;
use OSS\Core\OssException;

class Signer
{
   public function getSigner(){
       $ossClient = new OssClient('LTAI5tD1gMhtD3sXdyvqsgXB','37sEIx7AwlzWIOiKmmfxub3rpcDlYr', 'oss-cn-shanghai.aliyuncs.com');
       $signedUrl = $ossClient->signUrl('htword2023',
           "doc/20230621/6ihbgDEaVgPjYvYIrgCRbyySJjZa8fQtZK9SDpEy.docx",
           3600,'GET',['response-content-type'=>'application/octet-stream']);
       return $signedUrl;
   }
}
